import { UserService } from './user.service';
// import * as svgCaptchs from 'svg-captcha';
import { Controller, Get, Post, Body, Session } from '@nestjs/common';

// @Controller({
//   path: 'user',
//   version: '1', //版本控制  url为/v1/user
//   // version: '2', //版本控制  url为/v2/user
// })
@Controller('user')
export class UserController {
  constructor(private readonly userService: UserService) {}
  @Get()
  getHello(): string {
    return 'Hello World!';
  }
  @Post()
  createUser(@Body() Body, @Session() session) {
    console.log(Body, session);
    return {
      code: 200,
    };
  }
}
